public class demo02 {
    public static void main(String[] args) {
        int count = 0;
        for (int year = 1900; year <= 2030; year++) {
            if (year % 4 == 0 && year % 100 != 0) {
                System.out.println(year + "是闰年");
                count++;
            } else if (year % 400 == 0) {
                System.out.println(year + "是闰年");
                count++;
            } else {
                continue;
            }
        }
        System.out.println("从1900年到2030年闰年的个数为" + count);
    }
}